package com.mi.service;

import com.mi.entity.MyPages;
import com.mi.entity.UserEntity;

import java.util.List;

public interface UserService {

    //登录
    public UserEntity login(UserEntity ue);

    //用户名唯一性校验
    public UserEntity uniqueName(String uname);

    //注册
    public boolean regist(UserEntity ue);


    /**
     * 查询会员
     * @param userInfo
     * @return
     */
    public MyPages<UserEntity> queryCustomer(UserEntity userInfo);

    /**
     * 查询单个会员
     * @param userInfo
     * @return
     */
    public UserEntity queryUser(UserEntity userInfo);

    /**
     * 修改会员
     * @param userInfo
     * @return
     */
    public boolean updCustomer(UserEntity userInfo);

    /**
     * 删除会员
     * @param cids
     * @return
     */
    public boolean delCustomer(String[] cids);

    /**
     * 更改会员状态
     * @param userInfo
     * @return
     */
    public boolean updCustomerStatus(UserEntity userInfo);

    /**
     * 修改密码
     * @param userInfo
     * @return
     */
    public boolean updPass(UserEntity userInfo);

}
